export async function getIpAddress() {
  try {
    const response = await fetch('https://api.vvhan.com/api/ipInfo');
    const data = await response.json();
    return data;
  } catch (error) {
    console.error('Failed to fetch IP address:', error);
    return null;
  }
}